package com.i8office.android.zhihuixinwu.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by pc on 2018/7/7.
 */

public class WorkSheet implements Serializable{

    /**
     * mid : 1d84d040-8d4d-4834-985c-1c3e63d66d0a
     * nid : NODE0001
     * attachments : [{"AttId":"9f2612b4-3cbd-42c7-b64f-2cab773ee664","AttFileName":"111.pdf"},{"AttId":"b18caa7e-59ea-4085-912a-939c068f0c01","AttFileName":"测试账号.txt"},{"AttId":"8108cfdb-e7fc-4ef8-bde3-ce2f45822528","AttFileName":"1.jpg"}]
     */

    private String mid;
    private String nid;
    private String sid;
    private Control control;
    private Modify modify;
    private List<AttachmentsBean> attachments;
    private List<AttachmentsBean> detpAttachments;
    private List<AttachmentsBean> allAttachments = new ArrayList<>();
    private String documentTitleName;

    public Modify getModify() {
        return modify;
    }

    public void setModify(Modify modify) {
        this.modify = modify;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getMid() {
        return mid;
    }

    public void setMid(String mid) {
        this.mid = mid;
    }

    public String getNid() {
        return nid;
    }

    public void setNid(String nid) {
        this.nid = nid;
    }

    public List<AttachmentsBean> getAttachments() {
        return attachments;
    }

    public List<AttachmentsBean> getDetpAttachments() {
        return detpAttachments;
    }

    public void setDetpAttachments(List<AttachmentsBean> detpAttachments) {
        this.detpAttachments = detpAttachments;
    }

    public void setAttachments(List<AttachmentsBean> attachments) {
        this.attachments = attachments;
    }

    public String getDocumentTitleName() {
        return documentTitleName;
    }

    public void setDocumentTitleName(String documentTitleName) {
        this.documentTitleName = documentTitleName;
    }

    public Control getControl() {
        return control;
    }

    public void setControl(Control control) {
        this.control = control;
    }

    public List<AttachmentsBean> getAllAttachments() {
        return allAttachments;
    }

    public void setAllAttachments(List<AttachmentsBean> allAttachments) {
        this.allAttachments = allAttachments;
    }
    public static class Modify implements Serializable{
        private boolean show ;
        private String oldOpinion;
        private String order;

        public boolean isShow() {
            return show;
        }

        public void setShow(boolean show) {
            this.show = show;
        }

        public String getOldOpinion() {
            return oldOpinion;
        }

        public void setOldOpinion(String oldOpinion) {
            this.oldOpinion = oldOpinion;
        }

        public String getOrder() {
            return order;
        }

        public void setOrder(String order) {
            this.order = order;
        }
    }
    public static class Control implements Serializable{
        private Option showReadedButton;
        private Option needOpinion;
        private List<Cell> saveCell;

        public List<Cell> getSaveCell() {
            return saveCell;
        }

        public void setSaveCell(List<Cell> saveCell) {
            this.saveCell = saveCell;
        }

        public Option getShowReadedButton() {
            return showReadedButton;
        }

        public void setShowReadedButton(Option showReadedButton) {
            this.showReadedButton = showReadedButton;
        }

        public Option getNeedOpinion() {
            return needOpinion;
        }

        public void setNeedOpinion(Option needOpinion) {
            this.needOpinion = needOpinion;
        }
    }
    public static class Cell  implements Serializable {
        private String type;
        private String col;
        private String row;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getCol() {
            return col;
        }

        public void setCol(String col) {
            this.col = col;
        }

        public String getRow() {
            return row;
        }

        public void setRow(String row) {
            this.row = row;
        }
    }
    public static class Option  implements Serializable{
        private boolean show;
        private String col;
        private String row;
        private String targetNodeKey;

        public boolean isShow() {
            return show;
        }

        public void setShow(boolean show) {
            this.show = show;
        }

        public String getCol() {
            return col;
        }

        public void setCol(String col) {
            this.col = col;
        }

        public String getRow() {
            return row;
        }

        public void setRow(String row) {
            this.row = row;
        }

        public String getTargetNodeKey() {
            return targetNodeKey;
        }

        public void setTargetNodeKey(String targetNodeKey) {
            this.targetNodeKey = targetNodeKey;
        }
    }
    public static class AttachmentsBean implements Serializable {
        /**
         * AttId : 9f2612b4-3cbd-42c7-b64f-2cab773ee664
         * AttFileName : 111.pdf
         */

        private String AttId;
        private String AttFileName;
        private String DeptName;
        private int type = 0;

        public String getDeptName() {
            return DeptName;
        }

        public void setDeptName(String deptName) {
            DeptName = deptName;
        }

        public String getAttId() {
            return AttId;
        }

        public void setAttId(String AttId) {
            this.AttId = AttId;
        }

        public String getAttFileName() {
            return AttFileName;
        }

        public void setAttFileName(String AttFileName) {
            this.AttFileName = AttFileName;
        }


        public AttachmentsBean() {
        }

        protected AttachmentsBean(Parcel in) {
            this.AttId = in.readString();
            this.AttFileName = in.readString();
        }

        public AttachmentsBean(String AttFileName, int type) {
            this.type = type;
            this.AttFileName = AttFileName;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }
    }


    public WorkSheet() {
    }

}
